<?php

/**
 * 应用开始处理
 * Some rights reserved：rfcsite.com
 * Contact email:458481812@qq.com
 */
namespace Home\Behaviors;
use \Think\Behavior;

class RouteBehavior extends Behavior {

    public function run(&$params) {
    	 $route=array(
    	 	
    	 	'/^article-(\d+)$/'=>"Article/show?id=:1",
    	 		'/^product-(\d+)$/'=>"Product/show?id=:1",
    	
    	 	
    	 		
    	 		
    	 );
    	$route= array_merge($route,F("Cate_route"),F("Route"));
    	
    	
   //print_r($route);

//
//		dump($route);

    	C('URL_ROUTE_RULES',$route);
    	
    	
    }

}

?>
